<template>
  <div id="app">
    <Header />
    <router-view></router-view>
    <!-- 在登录和注册页面隐藏Footer -->
    <Footer v-show="$route.meta.showFooter" />
    
  </div>
   
</template>

<script>
import Header from './components/Header'
import Footer from './components/Footer'
export default {
  name: 'App',
  components: { Header, Footer },
  mounted() {
    // 组件挂载完毕，向服务器发请求
    // this.$store.dispatch('categoryList');

  },
}
</script>

<style></style>
